package service.impl;

import java.util.List;

import dao.AddressDao;
import dao.factory.DaoFactory;
import pojo.Address;
import service.AddressManeger;

public class AddressManagerImpl implements AddressManeger{
	private AddressDao addressDao;
	
	
	public AddressManagerImpl() {
		super();
		addressDao = DaoFactory.getAddressDao();
	}

	@Override
	public List<Address> findAddresses(String name) {
		return addressDao.findAddress(name);
	}

}
